package com.leyou;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

//搜索微服务
@SpringBootApplication(exclude={DataSourceAutoConfiguration.class})
@EnableDiscoveryClient      //eureka客户端
@EnableFeignClients         //方便服务调用feign，自带负载均衡
public class LySearchApplication {
    public static void main(String[] args) {
        SpringApplication.run(LySearchApplication.class);
    }
}
